﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApplication3
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void btnTest1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("One");
        }

        private void btnTest2_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Two");
        }

        private void checkBox1_CheckedChanged(object sender, EventArgs e)
        {
            for (int i = 0; i < 3; i++)
            {
                MessageBox.Show("checkBox1_CheckedChanged!");
            }

        }

        private void btnTest_Click(object sender, EventArgs e)
        {
            int aa = 10;
            int bb = 20;
            int result = Add(aa, bb);
            MessageBox.Show(string.Format("{0}+{1}={2}", aa, bb, result));
        }

        private int Add(int a, int b)
        {
            return a + b;
        }

        private int Sub(int a,b)
        {
            return a-b;
        }
    }
}
